/**
 * CC_Model_IsSharedFileResponse.java
 */
package commands.controller;
import dataTypes.*;

/**
 * Command returning information if a file is on the list of shared files.
 * @author Michal Kolodziejski
 */
public class CC_Model_IsSharedFileResponse extends ControllerCommand {
	/** A checked file. */
	private File file;
	/** A result of the check. */
	private boolean isShared; 
	private int id;
	
	
	/**
	 * Constructor
	 * @param file a checked file
	 * @param isShared a result of the check
	 */
	public CC_Model_IsSharedFileResponse(File file, boolean isShared, int id){
		super(ControllerCommandType.MODEL_IS_SHARED_FILE_RESPONSE);
		this.file = file;
		this.isShared = isShared;
		this.id = id;
	}

	/**
	 * @return the checked file
	 */
	public File getFile() {
		return file;
	}

	/**
	 * @return the result of the check
	 */
	public boolean isShared() {
		return isShared;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

}
